'use strict';

/**
 * @ngdoc service
 * @name webApp.searchParam
 * @description
 * # searchParam
 * Service in the webApp.
 */

angular.module('webApp')
  .factory('searchParam', function ($location) {
  function GetQueryString(name)
  {
    return $location.search()[name];
  }
  return {
    getUrl :function(name){
      return GetQueryString(name);
    }
  }
});
